#include "EditorTexturePageModel.h"
#include "Window/EditorWindowGroupModel.h"

TSharedObjectPtr<REditorPageModel> REditorTexturePageModel::ShareClone(RObject *InOwner) const
{
    TSharedObjectPtr<REditorTexturePageModel> NewModel = NewObject<REditorTexturePageModel>(InOwner);
    NewModel->Texture = Texture;
    NewModel->FilePath = FilePath;
    return NewModel;
}

TSharedObjectPtr<REditorTexturePageModel> REditorTexturePageModel::Create(const SPath &InFilePath, TSharedObjectPtr<RTexture2D> InTexture)
{
    TSharedObjectPtr<REditorTexturePageModel> NewPageModel = NewObject<REditorTexturePageModel>(REditorWindowGroupModel::Get());
    NewPageModel->Texture = InTexture;
    NewPageModel->FilePath = InFilePath;
    return NewPageModel;
}